package com.hospital.demo.service.impl.lxy;

import com.hospital.demo.mapper.lxy.RegistrationMapper;
import com.hospital.demo.service.lxy.RegistrationService;
import com.hospital.demo.model.lxy.Registration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 李欣远
 * @since 2020-04-08
 */
@Service
public class RegistrationServiceImpl implements RegistrationService {

    @Autowired
    RegistrationMapper registrationMapper;

    @Override
    public List<Registration> selReg() {
        return registrationMapper.selReg();
    }

    @Override
    public List<Registration> selRegByDoc(int rwid) {
        return registrationMapper.selRegByDoc(rwid);
    }

    @Override
    public List<Registration> selRegByDe(int rdeid) {
        return registrationMapper.selRegByDe(rdeid);
    }

    @Override
    public List<Registration> selRegByP(int rpid) {
        return registrationMapper.selRegByP(rpid);
    }

    @Override
    public int save(Registration registration) {
        return registrationMapper.save(registration);
    }

    @Override
    public int updateById(Registration registration) {
        return registrationMapper.updateById(registration);
    }

    @Override
    public int removeById(Long id) {
        return registrationMapper.removeById(id);
    }

    @Override
    public List<Registration> selReg0() {
        return registrationMapper.selReg0();
    }
}
